package ooday02;

public class Teacher extends Person{
    double salary;

    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary = salary;
    }
    void teach(){
        System.out.println("叫"+name+"月薪"+salary+"的老师正在备课");
    }
}
